package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户充值订单表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_user_topup_order")
public class SysUserTopupOrder {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @TableField(value = "shop_id")
    private Long shopId;

    @TableField(value = "user_id")
    private Long userId;

    /**
     * 金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 1:用户自已提交 2:系统充值
     */
    @TableField(value = "`type`")
    private Byte type;

    /**
     * 支付单号
     */
    @TableField(value = "pay_no")
    private String payNo;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 外部订单流水号
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     * 支付状态
     */
    @TableField(value = "is_payed")
    private Byte isPayed;


    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 充值凭证
     */
    @TableField(value = "rchg_certificate")
    private String rchgCertificate;

    /**
     * 状态 0:待审核 1:审核拒绝 2:审核通过
     */
    @TableField(value = "`status`")
    private Byte status;

    /**
     * 审核意见
     */
    @TableField(value = "audit_opinion")
    private String auditOpinion;

    /**
     * 审核时间
     */
    @TableField(value = "review_time")
    private Date reviewTime;

    /**
     * 操作人
     */
    @TableField(value = "modify_by")
    private Long modifyBy;


    @TableField(value = "remark")
    private String remark;
}